package Command;

public class OrderCommand implements Command{
    private Operator receiver; //执行者
    private Order order; //执行的目标
    public OrderCommand(Operator receiver, Order order)
    {
        this.receiver = receiver;
        this.order = order;
    }
    @Override
    public void execute() {
        System.out.println(order.getId() + "号顾客的成品");
        receiver.MakeFruit(order);
    }
}
